Shift input processing to its own method