Provides a padding based on keyboard state. If keyboard is opened the passed padding will be returned and 0 will be returned otherwise