When deleting blocks using the eraser, the blocks will only be erased after the player releases the mouse button. This means that if you use a keybind to switch to another tool, you will select a ghost block. Furthermore, any blocks placed from this ghost block will not be selectable until the player deletes/paints over the original ghost block.
Check the video.