Input refactored. Simple keyboard callback made.