Revert "Revert "Catch input value when screen rotation / minimizing""

This reverts commit b5a833df7203eeb07c1601c6078eb90d0d3143fa.