better handle return key + refactor keyboard animation