use a function for shooting a bullet or jumping and assign those functions to your keys.
This can be done in the main function (for example) by writing:
Code:
on_w = shoot;
on_space = jump;



Note: Do NOT write parentheses after the function name when assigning it to a key!