added keyboard controls and flashcard count