Added valid button checking, showing error in result
Added keypress handler, including enter. Bug fix for key validation returning undefined