Ending and keyboard support