pressed or release already exists as events in "add event/input" if you choose keyboard. and if you go to controls in the game settings you can choose any key to be a control and give it a name. then under user input you can find the blocks to detect if the key was pressed, released or held(is down).