added key collision y direction