This is quite strange. I checked this in the downloaded version (the one you should have) and nothing like this happens. If you replace “C” with something else, does it happen again?
In any case the best way to handle key presses is using the built-in (the engine) keybinding system. Inside your project you should assign keybinds and replace the hard coded keyboard assignments I have with yours.