Key holds the key names a phone can press. Each is a plain string, so Key.ENTER and "enter" are the same. Printable text goes through phone.type_text() instead.
from halyard import Key

phone.get_by_text("Search").fill("weather")
phone.key_press(Key.ENTER)
ConstantValueNotes
Key.ENTER"enter"Submits a form, or fires the on-screen keyboard’s Go or Search action.
Key.TAB"tab"
Key.ESCAPE"escape"
Key.BACKSPACE"backspace"
Key.DELETE"delete"
Key.ARROW_UP"arrowUp"
Key.ARROW_DOWN"arrowDown"
Key.ARROW_LEFT"arrowLeft"
Key.ARROW_RIGHT"arrowRight"
Key.HOME"home"
Key.END"end"
Key.PAGE_UP"pageUp"
Key.PAGE_DOWN"pageDown"
Key.SPACE"space"
Key.F1 to Key.F12"f1" to "f12"
Key.CAPSLOCK"capslock"Toggles the on-screen keyboard’s caps lock.