separated and simlified keyboard inputs