Implements keyboard auto hide on register fragment