Javascript platformer object keys

I’m making a platformer game with javascript and I want to rebind the keys (or simulate them when a key is pressed) but I cant seem to figure out how to do that.

In the editor, choose “Other Conditions” on the right hand side then scroll down to >Keyboard and go from there to simulate key being pressed.