Refactored "wait" with mind to set a certain register on keypress, implemented up to Fx1E