Test for UseKeyEffect