Can I get the iOS Simulator to listen for keyboard events for debugging purposes?
The only easy way to achieve this (which I can think of) is to create some very small buttons in your application and wire them to the functions you want to call. You can place them somewhere where they don't interfere with the user interface. Since you are developing for a mobile device, unfortunately you cannot press a key on your keyboard and call a function.
source to share