I don't Have this problem in Lite-C...
the character don't penetrate the walls when I hold the up arrow key and the left or right arrow key