Well the idea is to separate controls from actions. You need to do this anyway if you plan on using any kind of keyboard customization options later. Get the input, assign a variable and then have your objects check those variables to perform the actions. This way you can stop getting input but those variables would retain their values.