Updated keyword's regex.
Unified the `set-attr`/`get-attr` function from the ui api in a single `attr` function.