edit.go
func (e *EditField) OnKeyPress(fn func(term.Key, rune) bool) {
	e.onKeyPress = fn
}
func (e *EditField) OnKeyPress(fn func(term.Key, rune) bool) {
	e.onKeyPress = fn
}
// OnKeyPress sets the callback that is called when a user presses a Key while
// the controls is active. If a handler processes the key it should return
// true. If handler returns false it means that the default handler will
// process the key