what is the difference between key command and key types?
type() won't. Type key populates the value attribute using JavaScript whereas . typekeys() emulates like actual user typing. Simulates keystroke events on the specified element, as though you typed the value key-by-key.