Compile-able script

Fixed compiler errors.
Changed key check to work with OnKeyUp's HoldTime argument.