#4 Added keyboard inputs