Make the PAGEUP and PAGEDOWN can remember the last input

Changes made in user_input_interface() to make PAGEUP and PAGEDOWN can remember the last user input