From my experience, yes it should. I have just tested it under Windows OS with a small example game by binding it to a keypress, and I experienced that it was a bit botched when running it in test mode, because everytime I would press the key, stencyl would steal the focus away from the game. But when I executed the resulting exe without stencyl it worked prefectly, so I assume it will work correctly when you publish the game.