Implement return key functionality.