You can control it by pressing those keys on a keyboard. :-)
Software does not control keys, but it can handle events. The exact way to do it depends on application type and the UI library used; you did not bother to share this information of your preferences. To understand handling of events, please learn it:
http://msdn.microsoft.com/en-us/library/awbftdfh.aspx[
^].
—SA