Changed to clicking Enter/Return adds new keyword without having to click the add button with the mouse. Added some comments in my code to make it easier to understand.