Pseudo-class :focus

input:focus
Selects the input element which has focus