Replace LAST_INPUT with INPUT.