Does anyone know why pressing space or leftctrl doesnt make moveamount 1 in this code?

https://paste.ofcode.org/cr8wmDa2ZUnSs6TUjPxpNt