Affects 1.13 and 1.13.1.
I have a similar issue. In the screenshot, http://garethpw.net/dev/misc/2015-07-15_13.58.27.png, one can infer that the first command in chat succeeds, however the second does not since it produces the result visible in the "isK" scoreboard on the right of the screen.
Can confirm that this affects 1.8.2-pre7 too.
I experience this issue in singleplayer and multiplayer on 1.13.1. Frame rates are very smooth when looking around and moving very short distances, but loading any new terrain seems to really harm the render thread's performance. Even setting one's render distance to 2 doesn't fix this. Reducing chunk updates in Optifine (1.13.0) to 1 largely resolved it, but it shouldn't be necessary to install a modification to play the game.
PC Specs: i5-4670 • 16GB DDR3 (10GB allocated) • R9 Fury