Hooked onto input keypress for mobile.